﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SPWeiBo.BusinessEntities;
using Microsoft.SharePoint;

namespace SPWeiBo.Repositories
{
    interface IWeiBoRepository
    {
        IEnumerable<FollowingRelation> ReadFollowingRelationsByFollower(String followerLoginName);
        IEnumerable<WeiBoItem> ReadLatestWeiBoItems(String userLoginName, DateTime afterThisTime, Int32 maxCount);

        Boolean CreateWeiBoItem(String content, String authorLoginName);
        Boolean CreateFollowingRelation(String followerLoginName, String followedLoginName);
    }
}
